<template>
  <ViewLwModal ref="viewLwModal" />
  <ViewZlModal ref="viewZlModal" />
  <ViewZzModal ref="viewZzModal" />
  <CheckLwModal ref="checkLwModal" @check-success="checkSuccess" />
  <CheckZlModal ref="checkZlModal" @check-success="checkSuccess" />
  <CheckZzModal ref="checkZzModal" @check-success="checkSuccess" />
</template>

<script setup>
import ViewLwModal from "@/views/kycx/lw/components/ViewModal.vue";
import ViewZlModal from "@/views/kycx/zl/components/ViewModal.vue";
import ViewZzModal from "@/views/kycx/zz/components/ViewModal.vue";
import CheckLwModal from "@/views/kycx/lw/components/CheckModal.vue";
import CheckZlModal from "@/views/kycx/zl/components/CheckModal.vue";
import CheckZzModal from "@/views/kycx/zz/components/CheckModal.vue";
const viewLwModal = ref();
const viewZlModal = ref();
const viewZzModal = ref();
const checkLwModal = ref();
const checkZlModal = ref();
const checkZzModal = ref();
const view = (type, id) => {
  if (type == "论文诚信") {
    viewLwModal.value.view(id);
  } else if (type == "专利诚信") {
    viewZlModal.value.view(id);
  } else if (type == "著作诚信") {
    viewZzModal.value.view(id);
  }
};
const check = (type, id, processId) => {
  if (type == "论文诚信") {
    checkLwModal.value.check(id, processId);
  } else if (type == "专利诚信") {
    checkZlModal.value.check(id, processId);
  } else if (type == "著作诚信") {
    checkZzModal.value.check(id, processId);
  }
};
defineExpose({ view, check });
const emit = defineEmits(["check-success"]);
const checkSuccess = () => {
  emit("check-success");
};
</script>

<style scoped lang="scss"></style>
